/**
 *  全局配置文件
 */
// export const develoDomain = 'jxsc.sdmoshutong.com'
// export const develoDomain = 'test.sdmoshutong.com'

export const develoDomain = '47.115.174.120'
// app分享连接打开的网址，结尾不要带/，如果网页是history模式，要带上/#，如www.baidu.com/#
export const APP_DOMAIN = 'www.baidu.com'
// app分享时是否携带参数
export const APP_SHARE_CARRY_PARAMS = true
export const API_URL = import.meta.env.VITE_API_URL //后台接口域名
export const TOKEN_NAME = 'Authorization'
//请求成功的状态码
export const REQUEST_SUCCESS_CODE = [200]
// 颜色不要带大写字母，虽然html能够识别，但是某些场景下，比对元素样式是否与THEME_PRIMARY一致时，元素的样式都是小写，此时THEME_PRIMARY如果是大写就会导致两者对比不一致，如商品的富文本编辑器
export const THEME_PRIMARY = '#105cfb'
// 默认分页数据的键值
export const DEFAULT_RESPONSE_KEY = 'rows'
// 默认分页总数数据的键值
export const DEFAULT_TOTAL_KEY = 'total'
// 默认的tabbar页面标题
export const TABBAR_TXTS = ['首页', '分类', '购物车', '个人中心']


let defaultLocale = 'en_US'
// #ifndef MP-WEIXIN||MP-ALIPAY
defaultLocale = 'zh_CN'
// #endif
export const LOCALE = defaultLocale

// 是否多选支付方式
export const MULTI_PAY = false
let payType = ''
// #ifdef MP-WEIXIN || SUBSCRIPTION || PRIVATE
 payType = 'WX'
// #endif
// #ifdef MP-ALIPAY
 payType = 'ZFB'
// #endif
// #ifdef APP-PLUS || HTML5 || PREVIEW
 payType = 'WX,ZFB'
// #endif
export const MOBILE_PAY_TYPE = payType+',SAND,JINQIANBA,ZL'
export const PAYTYPE = MOBILE_PAY_TYPE+',OFFLINE,CASH,JINQIANBA'

// 是否使用默认的余额账户
export const DEFAULT_ACCOUN_SHOW = true
// 是否使用自定义支付逻辑
export const CUSTOM_PAY = {
	h5: false,
	wx: false,
	app: false,
	Offline: false
}
// 是否使用自定义的账户页面
export const CUSTOM_CURRENCY_PAGE = false
// 使用自定义的账户页面路径
export const CUSTOM_CURRENCY_PAGE_PATH = ''
// 是否指定特定的账户跳转自定义的账户页面，为空则代表所有自定义账户均跳转到CUSTOM_CURRENCY_PAGE_PATH对应的页面
// CUSTOM_CURRENCY_LIST存放的值为账户的strategy属性和对应的自定义页面路径
// 如默认账户-余额 {strategy:yue,path:''}
export const CUSTOM_CURRENCY_LIST : { strategy : string, path : string }[] = []
// 是否开放购物车功能
export const OPEN_SHOPPING_CART = true


// 小程序ext文件配置(仅开发环境使用)
export const EXTCONFIG = {
	tenant: import.meta.env.VITE_APP_TENANT,
	domain: API_URL,
	'mp-static': '/static/'
}
// 是否显示自营标签，优先级最高
export const APP_HAS_OWN = true

// 当前项目默认定位的经纬度
export const DEFAULT_LOCATION = [39.9096, 116.3972]

// 使用腾讯还是谷歌地图 腾讯为'tencent' 谷歌为google
export const APP_MAP_TYPE = 'tencent'
// 是否使用微信小程序自带的客服功能，仅微信小程序下有效
export const MPAPP_CONTACT = true
// 是否显示客服功能
export const SHOW_KEFU = true

// 绑定收货地址类型 地址列表为addressList，选择附近地点为nearbyAddress
export const BIND_ADDRESS_TYPE = 'addressList'

// tabbar页面开启自定义页面头部时，自定义页面头部的高度
export const GET_MENU_HEIGHT = (menuButtonInfo : UniNamespace.GetMenuButtonBoundingClientRectRes) => {
	let height = 0
	// #ifdef APP-PLUS
	height = (uni.getSystemInfoSync().statusBarHeight || 0) + 44
	// #endif
	// #ifdef MP-WEIXIN||MP-ALIPAY
	height = menuButtonInfo.top + menuButtonInfo.height + 6
	// #endif
	return height

}
// tabbar页面中，需要展示自定义页面头部的页面索引，自定义页面头部指在页面头部展示logo等特殊操作
export const CUSTOM_NAVIGATION_TABBAR_INDEXS = []

export enum PayType {
	SYS = "SYS",//系统支付
	STRIPE = "STRIPE",//STRIPE支付
	WX = "WX",//微信支付 包含小程序与app
	ZFB = "ZFB", //支付宝支付
	OFFLINE = "OFFLINE",//线下支付
	CASH = "CASH",//货到付款
	YABAND = "YABAND",//雅本支付
	HM = "HM",//河马支付
	SAND = "SAND",//杉德支付
	UIPAY = "UIPAY",//支付宝小程序支付
	CYBERSOURCE = "CYBERSOURCE",//CYBERSOURCE支付
	JINQIANBA = "JINQIANBA",//进钱吧支付
	DFK = "DFK",//代付款
	FAST="FAST",//快付
}

export const WHITE_ROUTE = [
	/\/pages\/tabbar\/.*$/,
	'/pages/404',
	'/pages/splash',
	'/pages/web',
	'/pages/preview/index',
	/\/pages\/public\/account\/.*$/,
	'/pages/public/txt',
	/\/pages\/classify\/goods\/.*$/,
	'/pages/classify/detail',
	'/pages/classify/search/index',
	'/pages/classify/searchResult',
	'/pages/nearby/store/info',
	'/pages/nearby/search',
	'/pages/nearby/searchResult',
	'/pages/nearby/city',
	'/pages/store/index',
	'/pages/store/map',
	'/pages/store/preview',
	'/pages/invite/download',
	'/pages/yuncang/goods/index',
	'/pages/yuncang/pickup',
	'/pages/seckill/seckill',
	'/pages/spellGroup/seckill',
	'/pages/user/discuss/info',
	/\/pages\/information\/.*$/,
	'/pages/preview/index',
	'/pages/invite/register'
]

// nvue下saas的字体图标
export const ICON_NAME_MAP = {
	'icon-banyuan':"\ue61b",
	
	'icon-youbanyuan':"\ue61c",
	
	'icon-check':"\ue61a",
	
	'icon-ERP_gengxin':"\ue665",
	
	'icon-gou':"\ue63b",
	
	'icon-jiahao2fill':"\ue728",
	
	'icon-jianshao':"\ue8b1",
	
	'icon-shifang':"\ue617",
	
	'icon-zhuanzhang':"\ue618",
	
	'icon-zhuanhuan':"\ue619",
	
	'icon-shoucang1':"\ue614",
	
	'icon-shoucang2':"\ue615",
	
	'icon-fenxiang':"\ue616",
	
	'icon-lujing':"\ue613",
	
	'icon-dingdanxiangqingkefuicon':"\ue612",
	
	'icon-shoucang':"\ue611",
	
	'icon-a-Group2Copy':"\ue610",
	
	'icon-xiaoxi':"\ue60e",
	
	'icon-shezhi':"\ue60f",
	
	'icon-wode':"\ue60d",
	
	'icon-shouye':"\ue60a",
	
	'icon-a-fenlei1':"\ue60b",
	
	'icon-a-gouwuche1':"\ue60c",
	
	'icon-sousuo':"\ue609",
	
	'icon-jiaobiao1':"\ue600",
	
	'icon-dianpu':"\ue601",
	
	'icon-gouwuche':"\ue602",
	
	'icon-jiaobiao2':"\ue603",
	
	'icon-gouwuche2':"\ue604",
	
	'icon-gonggao-laba':"\ue605",
	
	'icon-jia':"\ue606",
	
	'icon-jiaobiao3':"\ue607",
	
	'icon-tongzhi':"\ue608",
}
// 显示技术支持组件
export const SHOW_SUPPORT = false